package com.shaw.workrecord.controller;

import com.shaw.workrecord.entity.ResponseBean;
import com.shaw.workrecord.pojo.SystemUserVO;
import com.shaw.workrecord.pojo.request.SystemUserRequest;
import com.shaw.workrecord.service.ISystemUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Validated
@Api(tags="用户组模块")
public class SystemUserController {

    @Autowired
    private ISystemUserService service;

    @GetMapping("/users")
    @ApiOperation("用户列表-不分页")
    public ResponseBean<List<SystemUserVO>> getUserList() {
        return ResponseBean.success(service.getUsers());
    }
}
